package com.zhibang.xtwh.service.Imp;

import com.zhibang.comnom.domain.AddRole;
import com.zhibang.comnom.domain.Menu;
import com.zhibang.comnom.domain.MenuTJ;
import com.zhibang.comnom.domain.Role;
import com.zhibang.comnom.vo.MenuVo;
import com.zhibang.comnom.vo.RoleVo;
import com.zhibang.xtwh.dao.XtwhMapper;
import com.zhibang.xtwh.service.XtwhService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class XtwhServiceImp implements XtwhService {
    @Resource
  private   XtwhMapper xtwhMapper;
    @Override
    public List<Menu> menu() {
        return xtwhMapper.menu();
    }

    @Override
    public int updateMenu(MenuVo menuVo) {
        return xtwhMapper.updateMenu(menuVo);
    }

    @Override
    public int MenuTJ(MenuTJ menuTJ) {
        return xtwhMapper.MenuTJ(menuTJ);
    }

    @Override
    public int DELETMenu(Integer id) {
        return xtwhMapper.DELETMenu(id);
    }

    @Override
    public List<Role> Roles() {
        return xtwhMapper.Roles();
    }

    @Override
    public int addRole(AddRole addRole) {
        return xtwhMapper.addRole(addRole);
    }

    @Override
    public int updateRole(RoleVo roleVo) {
        return xtwhMapper.updateRole(roleVo);
    }


}
